package cate.game.role.res.guild.msg.envelope;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdGuild;
import cate.game.role.Role;
import cate.game.role.res.guild.po.my.MyGuildRedEnvelopePO;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "我的公会红包数据 の 返回")
public class MyGuildEnvelopeResp implements MsgOutput {
    public MyGuildEnvelopeResp() {
    }

    @NoteField(value = "我的公会红包信息")
    public MyGuildRedEnvelopePO envelope;
    
    @Override
    public MsgConfig conf() {
        return MsgIdGuild.MY_GUILD_ENVELOPE_RESP;
    }

    public MyGuildEnvelopeResp(Role role) {
        this.envelope = role.getRes().guild.envelope;
    }
}
